package org.dromara.common.core.exception.file;

import java.io.Serial;


/**
 * @Author 刘武贵
 * @Date 2024/8/15 22:00
 * @Description 功能描述：文件名称超长限制异常类
 */
public class FileNameLengthLimitExceededException extends FileException {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 构造函数，用于创建FileNameLengthLimitExceededException异常对象
     * 当文件名长度超过限定值时，抛出此异常
     *
     * @param defaultFileNameLength 默认文件名长度限制值
     */
    public FileNameLengthLimitExceededException(int defaultFileNameLength) {
        super("upload.filename.exceed.length", new Object[]{defaultFileNameLength});
    }
}
